package com.thd.springboottest.shironostate.configuration;

import org.apache.shiro.mgt.DefaultSubjectDAO;
import org.apache.shiro.subject.Subject;

/**
 * com.thd.springboottest.shironostate.cfg.MySubjectDAO
 *
 * @author: wanglei62
 * @DATE: 2022/7/28 10:52
 **/
public class MyShiroSubjectDAO extends DefaultSubjectDAO {
    @Override
    protected boolean isSessionStorageEnabled(Subject subject) {
        // 不使用session
        return false;
    }
}
